export interface SpuList {
   code: number,
   data: {
      current: number,
      hitCount: boolean,
      pages: number,
      records: SpuData[],
      searchCount: boolean,
      size: number,
      total: number
   },
   message: string,
   ok: boolean

}


interface SpuImageList {
   createTime?: string,
   id?: number,
   imgName: string,
   imgUrl: string,
   spuId?: number,
   updateTime?: string
}

interface SpuSaleAttrValue {
   baseSaleAttrId: number,
   createTime: string,
   id: number,
   isChecked: string,
   saleAttrName: string,
   saleAttrValueName: string,
   spuId: number,
   updateTime: string
}

type SpuSaleAttrValueList = SpuSaleAttrValue[]

interface SpuSaleAttr extends SpuSaleAttrValueList {
   baseSaleAttrId?: number,
   createTime?: string,
   id?: number,
   saleAttrName: string,
   spuId?: number,
   spuSaleAttrValueList: SpuSaleAttrValueList,
   updateTime?: string
}
type SpuSaleAttrList = SpuSaleAttr[]

interface SpuPoster {
   createTime?: string,
   id?: number,
   imgName: string,
   imgUrl: string,
   spuId?: number,
   updateTime?: string

}

export interface SpuData {
   category3Id?: number,
   createTime?: string,
   description: string,
   id?: number,
   spuImageList?: SpuImageList[],
   spuName: string,
   spuPosterList: SpuPoster[],
   spuSaleAttrList: SpuSaleAttrList,
   tmId?: number,
   updateTime?: string
}